package org.sfnelson.sk.client.event;

import java.util.Date;

import org.sfnelson.sk.client.data.Loot;
import org.sfnelson.sk.client.data.User;

public class ReceivedLoot extends Event {

	public final User user;
	public final Loot loot;
	public final String reason;

	public ReceivedLoot(Long id, Date date, User user, Loot loot, String reason) {
		super(id, date);
		this.user = user;
		this.loot = loot;
		this.reason = reason;
	}

	@Override
	public String toString() {
		return user + " received " + loot + " (" + reason + ")";
	}

}
